package cn.csc.module.product.controller.admin.stock.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
* 库存信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class SkuStockBaseVO {

    @ApiModelProperty(value = "SKU ID", required = true)
    @NotNull(message = "SKU ID不能为空")
    private BigInteger skuId;

    @ApiModelProperty(value = "实际库存", required = true)
    @NotNull(message = "实际库存不能为空")
    private Integer actualStock;

    @ApiModelProperty(value = "锁定库存", required = true)
    @NotNull(message = "锁定库存不能为空")
    private Integer lockStock;

    @ApiModelProperty(value = "可售卖库存", required = true)
    @NotNull(message = "可售卖库存不能为空")
    private Integer stock;

}
